
package com.ruoyi.web.controller.lingshui.integrityEvaluation;


import java.util.List;

import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.supervise.domain.IGMCompanyCreditRank;
import com.ruoyi.supervise.domain.IGMCompanyStageRank;
import com.ruoyi.supervise.service.IIntegrityEvaluationService;

/**
 * @ClassName: enterprisesIntegrityEvaluationController
 * @Description: 诚信评价管理中企业评价结果
 * @Author wtj
 * @DateTime 2020年5月12日 下午3:30:54
 */
@Controller
@RequestMapping("/integrityEvaluation/enterprises")
public class EnterprisesIntegrityEvaluationController extends BaseController{

	private String enterprisesRealTimePrefix = "lingshui/integrityEvaluation/enterprisesRealTime";
	private String enterprisesStagePrefix = "lingshui/integrityEvaluation/enterprisesStage";
	
	@Autowired
    private IIntegrityEvaluationService integrityEvaluationService;
	
	/**
	 * @Title: enterprisesRealTime
	 * @Description: 跳转到企业实时评价结果页面
	 * @Author wtj
	 * @DateTime 2020-9-27 11:19:06
	 * @return
	 */
	@RequiresPermissions("integrityEvaluation:enterprisesRealTime:view")
	@GetMapping("/enterprisesRealTime")
	public String enterprisesRealTime()
	{
	    return enterprisesRealTimePrefix + "/enterprisesRealTime";
	}
	
	/**
	 * @Title: enterprisesRealTimeList
	 * @Description: 企业实时评价结果页面列表获取数据
	 * @Author wtj
	 * @DateTime 2020-9-27 11:19:53
	 * @param igmccr
	 * @return
	 */
	@RequiresPermissions("integrityEvaluation:enterprisesRealTime:list")
	@PostMapping("/enterprisesRealTimeList")
    @ResponseBody
    public TableDataInfo enterprisesRealTimeList(IGMCompanyCreditRank igmccr)
    {
	   startPage();
	   List<IGMCompanyCreditRank> igmccrList = integrityEvaluationService.selectIGMCompanyCreditRankList(igmccr);
	   return getDataTable(igmccrList);
    }
	
	/**
	 * @Title: enterprisesStage
	 * @Description: 跳转到企业阶段评价结果页面
	 * @Author wtj
	 * @DateTime 2020-9-27 11:20:30
	 * @return
	 */
	@RequiresPermissions("integrityEvaluation:enterprisesStage:view")
	@GetMapping("/enterprisesStage")
	public String enterprisesStage()
	{
	    return enterprisesStagePrefix + "/enterprisesStage";
	}
	
	/**
	 * @Title: enterprisesStageList
	 * @Description: 企业阶段评价结果页面列表获取数据
	 * @Author wtj
	 * @DateTime 2020-9-27 11:21:16
	 * @param igmcsr
	 * @return
	 */
	@RequiresPermissions("integrityEvaluation:enterprisesStage:list")
	@PostMapping("/enterprisesStageList")
    @ResponseBody
    public TableDataInfo enterprisesStageList(IGMCompanyStageRank igmcsr)
    {
	   startPage();
	   List<IGMCompanyStageRank> igmcsrList = integrityEvaluationService.selectIGMCompanyStageRankList(igmcsr);
	   return getDataTable(igmcsrList);
    }
}
